/* 主题演示页面样式 */
.theme-demo {
  min-height: 100vh;
  background-color: var(--modal-color-surface, #f8fafc);
  color: var(--modal-color-text, #1a202c);
  font-family: var(--modal-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
  transition: background-color var(--modal-duration-normal, 300ms) var(--modal-easing-ease, ease);
}

/* 页面头部 */
.demo-header {
  padding: 40px 20px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.back-button {
  background: none;
  border: 1px solid var(--modal-color-border, #e2e8f0);
  color: var(--modal-color-text, #1a202c);
  padding: 8px 16px;
  border-radius: var(--modal-radius-md, 8px);
  cursor: pointer;
  font-family: inherit;
  font-size: var(--modal-font-size-sm, 14px);
  margin-bottom: 20px;
  transition: 
    background-color var(--modal-duration-fast, 150ms) var(--modal-easing-ease, ease),
    border-color var(--modal-duration-fast, 150ms) var(--modal-easing-ease, ease);
}

.back-button:hover {
  background-color: var(--modal-color-border, #e2e8f0);
  border-color: var(--modal-color-primary, #3b82f6);
}

.demo-header h1 {
  font-size: 42px;
  font-weight: var(--modal-font-weight-bold, 700);
  margin: 0 0 12px 0;
  color: var(--modal-color-text, #1a202c);
}

.demo-header p {
  font-size: var(--modal-font-size-lg, 18px);
  color: var(--modal-color-textSecondary, #4a5568);
  margin: 0 0 40px 0;
}

/* 主题控制面板 */
.theme-control-panel {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.control-group {
  background-color: var(--modal-color-background, #ffffff);
  border: 1px solid var(--modal-color-border, #e2e8f0);
  border-radius: var(--modal-radius-lg, 12px);
  padding: 24px;
  box-shadow: 0 1px 3px var(--modal-color-shadowLight, rgba(0, 0, 0, 0.05));
  transition: 
    background-color var(--modal-duration-normal, 300ms) var(--modal-easing-ease, ease),
    border-color var(--modal-duration-normal, 300ms) var(--modal-easing-ease, ease);
}

.control-group h3 {
  margin: 0 0 16px 0;
  font-size: var(--modal-font-size-lg, 18px);
  font-weight: var(--modal-font-weight-semibold, 600);
  color: var(--modal-color-text, #1a202c);
}

/* 主题信息 */
.theme-info p {
  margin: 8px 0;
  font-size: var(--modal-font-size-sm, 14px);
  color: var(--modal-color-textSecondary, #4a5568);
}

.theme-info strong {
  color: var(--modal-color-text, #1a202c);
  font-weight: var(--modal-font-weight-medium, 500);
}

/* 颜色调色板 */
.color-palette {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: 12px;
}

.color-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.color-swatch {
  width: 40px;
  height: 40px;
  border-radius: var(--modal-radius-md, 8px);
  border: 2px solid var(--modal-color-border, #e2e8f0);
  transition: transform var(--modal-duration-fast, 150ms) var(--modal-easing-ease, ease);
}

.color-swatch:hover {
  transform: scale(1.1);
}

.color-item span {
  font-size: var(--modal-font-size-xs, 12px);
  color: var(--modal-color-textMuted, #718096);
  text-align: center;
}

/* 演示操作区域 */
.demo-actions {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
  margin-bottom: 40px;
}

/* 主题化内容 */
.themed-content {
  color: var(--modal-color-text, #1a202c);
}

.themed-content h3 {
  margin: 0 0 16px 0;
  font-size: var(--modal-font-size-lg, 18px);
  font-weight: var(--modal-font-weight-semibold, 600);
  color: var(--modal-color-text, #1a202c);
}

.themed-content ul {
  margin: 0 0 24px 0;
  padding-left: 20px;
}

.themed-content li {
  margin: 8px 0;
  font-size: var(--modal-font-size-md, 16px);
  color: var(--modal-color-textSecondary, #4a5568);
  line-height: 1.5;
}

/* 主题示例 */
.theme-examples {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--modal-color-divider, #f1f5f9);
}

.theme-examples h4 {
  margin: 0 0 16px 0;
  font-size: var(--modal-font-size-md, 16px);
  font-weight: var(--modal-font-weight-medium, 500);
  color: var(--modal-color-text, #1a202c);
}

.button-group {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

/* 状态指示器 */
.status-indicators {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
}

.status-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: var(--modal-radius-md, 8px);
  font-size: var(--modal-font-size-sm, 14px);
  font-weight: var(--modal-font-weight-medium, 500);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.status-success {
  background-color: color-mix(in srgb, var(--modal-color-success, #10b981) 10%, transparent);
  color: var(--modal-color-success, #10b981);
}

.status-success .status-dot {
  background-color: var(--modal-color-success, #10b981);
}

.status-warning {
  background-color: color-mix(in srgb, var(--modal-color-warning, #f59e0b) 10%, transparent);
  color: var(--modal-color-warning, #f59e0b);
}

.status-warning .status-dot {
  background-color: var(--modal-color-warning, #f59e0b);
}

.status-error {
  background-color: color-mix(in srgb, var(--modal-color-error, #ef4444) 10%, transparent);
  color: var(--modal-color-error, #ef4444);
}

.status-error .status-dot {
  background-color: var(--modal-color-error, #ef4444);
}

.status-info {
  background-color: color-mix(in srgb, var(--modal-color-info, #3b82f6) 10%, transparent);
  color: var(--modal-color-info, #3b82f6);
}

.status-info .status-dot {
  background-color: var(--modal-color-info, #3b82f6);
}

/* 响应式设计 */
@media (max-width: 768px) {
  .demo-header {
    padding: 20px;
  }
  
  .demo-header h1 {
    font-size: 32px;
  }
  
  .theme-control-panel {
    grid-template-columns: 1fr;
    padding: 0 20px;
  }
  
  .button-group {
    flex-direction: column;
  }
  
  .status-indicators {
    grid-template-columns: 1fr;
  }
}

/* 深色模式特定样式 */
[data-theme="dark"] .theme-demo {
  background-color: var(--modal-color-surface);
}

[data-theme="dark"] .control-group {
  background-color: var(--modal-color-background);
  border-color: var(--modal-color-border);
}

/* 动画增强 */
@media (prefers-reduced-motion: no-preference) {
  .color-swatch,
  .back-button,
  .control-group {
    transition: 
      transform var(--modal-duration-fast, 150ms) var(--modal-easing-ease, ease),
      background-color var(--modal-duration-fast, 150ms) var(--modal-easing-ease, ease),
      border-color var(--modal-duration-fast, 150ms) var(--modal-easing-ease, ease);
  }
}

/* 减少动画模式 */
@media (prefers-reduced-motion: reduce) {
  .theme-demo,
  .control-group,
  .back-button,
  .color-swatch {
    transition: none;
  }
}

